package cn.echarts.map.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSONObject;

import cn.echarts.map.mapper.EchartsMapMapper;
import cn.echarts.map.service.EchartsMapService;
@Service
public class EchartsMapServiceImpl implements EchartsMapService {
	
	//0.注入持久层对象
	@Resource
	private  EchartsMapMapper echartsMapMapper;
	/**
	 * 1.根据年份查询陕西省当年各地区的财政收入情况
	 */
	@Override
	public String queryShanXiEveryAreaIncome(String time) {
		List<Object> list =	echartsMapMapper.queryShanXiEveryAreaIncome(time);
		String jsonData = JSONObject.toJSONString(list);
		return jsonData;
	}
	

}
